package com.wondersgroup.fjzlpt.console.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by lion on 2017/5/26.
 */
@Component
public class SystemConstant {

    /*卫生管理机构类别代码*/
    public static String WSGLJGLBDM;

    //是否上线运行评价系统
    public static boolean yxpjOnline;

    //机构配置接入信息功能按钮
    public static boolean jgpzjrxx ;

    /*默认上级代码*/
    public static String sjdm;

    /*mongo图片表名*/
    public static String mongo_imgaes_tablename;

    /*缓存文件根路径*/
    public static String filePath;

    @Value("${console.mongo.images.tablename}")
    public void setMongo_imgaes_tablename(String mongo_imgaes_tablename) {
        SystemConstant.mongo_imgaes_tablename = mongo_imgaes_tablename;
    }

    @Value("${console.filePath}")
    public void setFilePath(String filePath) {
        SystemConstant.filePath = filePath;
    }

    @Value("${common.xzqh.sjdm}")
    public void setSjdm(String sjdm) {
        SystemConstant.sjdm = sjdm;
    }

    @Value("${console.yxpjOnline}")
    public void setYxpjOnline(boolean yxpjOnline) {
        SystemConstant.yxpjOnline = yxpjOnline;
    }

    @Value("${console.jgpzjrxx}")
    public void setJgpzjrxx(boolean jgpzjrxx){
        SystemConstant.jgpzjrxx = jgpzjrxx;
    }

    @Value("${common.WSGLJGLBDM}")
    public void setWSGLJGLBDM(String WSGLJGLBDM) {
        SystemConstant.WSGLJGLBDM = WSGLJGLBDM;
    }
}
